﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartMathLibrary
{
    /// <summary>
    /// This class represents a sparse matrix.
    /// </summary>
    [Serializable]
    public class SparseMatrix : Matrix
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SparseMatrix"/> class.
        /// </summary>
        /// <param name="rows">The number of matrix rows.</param>
        /// <param name="columns">The number of matrix columns.</param>
        public SparseMatrix(int rows, int columns)
            : base(rows, columns)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SparseMatrix"/> class.
        /// </summary>
        /// <param name="matrix">The values of the matrix.</param>
        public SparseMatrix(double[,] matrix)
            : base(matrix)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SparseMatrix"/> class.
        /// </summary>
        /// <param name="matrix">The matrix to clone.</param>
        public SparseMatrix(Matrix matrix)
            : base(matrix)
        {
        }
    }
}